package com.yan.thread;

/**
 * @author taoge
 * @Date 2024/8/7 11:23
 * @Description
 */
public class ThreadDemo1 {
    public static void main(String[] args) {
        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread("线程A");
        MyThread t3 = new MyThread("主线程");
        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }
        t1.start();
        t2.start();
        t3.run();
    }
}
